/*
 * @Description: 
 * @Author: Sun
 * @Date: 2024-08-03 08:58:15
 * @LastEditors: Sun
 * @LastEditTime: 2024-08-04 10:48:58
 */
// let a ;
// a =10
// a="hello"

var c:number;
// a = "hello"
c=20;

var b:string;
b = "hello"

let c1: boolean = true;

//js中的函数时不考虑参数的类型和个数的
function sum(a:number,b:number){
  return a+b
}

// ):number 确保函数的返回值的类型
function sum1(a: number, b: number):number {
  return a + b
}

let sop= sum(1, 11)

let sopop = sum1( 1, 11)


interface aq { name2: string }
interface ao { phone2: string }
type pec = aq & ao
let Obj:pec = { name2: "Jone", phone2: "1233"}



console.log("sop", sop)

console.log("sopop", sopop)
// console.log(sum(10, 11))
// console.log(sum(a:1, b:11))
